<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        function success(data) {
            console.log('拿到data数据');
            console.log(data);
        }
    </script>
    
    <script src="/js/jsnp.js?callback=success"></script>
    <!-- 通过src属性拼接查询字符串的方式 告诉服务器调用这个函数并通过实参把数据传递出来 -->
</body>

</html>